package cn.redragon.soa.amqp.model;


import java.util.List;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class StockImportedEvent {

    @Valid
    @NotNull
    private List<StockImportedItem> stocks;

    @Getter
    @Setter
    @ToString
    @NoArgsConstructor
    @AllArgsConstructor
    public static class StockImportedItem {

        @NotNull
        private String sku;
        @NotNull
        private String type;
        @NotNull
        private Long qty;
        private String remarks;
    }

}
